<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Neutrino安装 - 🦊的小窝🐾</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="小狐狸" /><meta name="description" content="安装Neutrino 要求 安装 Neutrino 需要 node.js 10&#43;，yarn 或者 npm。你至少应该安装 Neutrino 和 Neutrino 中间件，比如 @neutrinojs/react。 创建新工" /><meta name="keywords" content="Hugo, theme, even" />






<meta name="generator" content="Hugo 0.62.1 with theme even" />


<link rel="canonical" href="https://alittlefox.github.io/post/neutrino/neutrino%E5%AE%89%E8%A3%85/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">


<link href="/dist/even.c2a46f00.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="Neutrino安装" />
<meta property="og:description" content="安装Neutrino 要求 安装 Neutrino 需要 node.js 10&#43;，yarn 或者 npm。你至少应该安装 Neutrino 和 Neutrino 中间件，比如 @neutrinojs/react。 创建新工" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://alittlefox.github.io/post/neutrino/neutrino%E5%AE%89%E8%A3%85/" />
<meta property="article:published_time" content="2020-05-13T14:09:08+08:00" />
<meta property="article:modified_time" content="2020-05-13T14:09:08+08:00" />
<meta itemprop="name" content="Neutrino安装">
<meta itemprop="description" content="安装Neutrino 要求 安装 Neutrino 需要 node.js 10&#43;，yarn 或者 npm。你至少应该安装 Neutrino 和 Neutrino 中间件，比如 @neutrinojs/react。 创建新工">
<meta itemprop="datePublished" content="2020-05-13T14:09:08&#43;08:00" />
<meta itemprop="dateModified" content="2020-05-13T14:09:08&#43;08:00" />
<meta itemprop="wordCount" content="325">



<meta itemprop="keywords" content="neutrino中文,neutrino," /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Neutrino安装"/>
<meta name="twitter:description" content="安装Neutrino 要求 安装 Neutrino 需要 node.js 10&#43;，yarn 或者 npm。你至少应该安装 Neutrino 和 Neutrino 中间件，比如 @neutrinojs/react。 创建新工"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">🦊的小窝🐾</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">首页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/about">
        <li class="mobile-menu-item">关于</li>
      </a>
  </ul>
</nav>
  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">🦊的小窝🐾</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">首页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about">关于</a>
      </li>
  </ul>
</nav>
    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">Neutrino安装</h1>

      <div class="post-meta">
        <span class="post-time"> 2020-05-13 </span>
        
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#neutrino">安装Neutrino</a></li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h3 id="neutrino">安装Neutrino</h3>
<h4 id="heading">要求</h4>
<p>安装 <code>Neutrino</code> 需要 <code>node.js 10+</code>，<code>yarn</code> 或者 <code>npm</code>。你至少应该安装 <code>Neutrino</code> 和 <code>Neutrino</code> 中间件，比如 <code>@neutrinojs/react</code>。</p>
<h4 id="heading-1">创建新工程</h4>
<p>最快的方法是使用脚手架工具 <code>@neutrinojs/create-project</code>。 如果你不想使用命令行帮助程序，请按照以下步骤进行手动安装说明。</p>
<h4 id="yarn-">Yarn 安装</h4>
<p>在你的项目目录下运行下面的命令。把下文中的 <code>MIDDLEWARE</code> 替换为你想要安装的中间件的名字</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">yarn add --dev neutrino MIDDLEWARE
</code></pre></td></tr></table>
</div>
</div><p>例如，如果你想要使用 <code>Neutrino</code> 的 React 预设（中间件）来构建项目：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">yarn add --dev neutrino @neutrinojs/react
</code></pre></td></tr></table>
</div>
</div><h4 id="npm-">npm 安装</h4>
<p>在你的项目目录下运行下面的命令。把下文中的 <code>MIDDLEWARE</code> 替换为你想要安装的中间件的名字</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">npm install --save-dev neutrino MIDDLEWARE
</code></pre></td></tr></table>
</div>
</div><p>例如，如果你想要使用 <code>Neutrino</code> 的 <code>React</code> 预设（中间件）来构建项目：</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-bash" data-lang="bash">npm install --save-dev neutrino @neutrinojs/react
</code></pre></td></tr></table>
</div>
</div><h4 id="heading-2"> 入门</h4>
<p>请继续阅读文档以获取有关 <code>Neutrino</code> 使用和默认项目布局的说明</p>

    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">小狐狸</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2020-05-13
        
    </span>
  </p>
  
  
</div>
<footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/neutrino%E4%B8%AD%E6%96%87/">neutrino中文</a>
          <a href="/tags/neutrino/">neutrino</a>
          </div>
      <nav class="post-nav">
        
        <a class="next" href="/post/neutrino/neutrino%E7%AE%80%E4%BB%8B/">
            <span class="next-text nav-default">Neutrino简介</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
  <a href="https://alittlefox.github.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  

  <span class="copyright-year">
    &copy; 
    2017 - 
    2020
    <span class="heart">
      <i class="iconfont icon-heart"></i>
    </span>
    <span class="author">小狐狸</span>
  </span>
</div>
    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>
<script type="text/javascript" src="/dist/even.26188efa.min.js"></script>








</body>
</html>
